package com.zj.osm.view.navigation

import com.zj.osm.App
import com.zj.osm.entity.db.PointDao
import com.zj.osm.entity.greendao.Point

/**
 * <pre>
 *     author : luhenchang
 *     e-mail : 1276998208@qq.com
 *     time   : 2020/04/22
 *     desc   : 版权所有
 *     version: 1.0
 * </pre>
 */
public class NavigationModel {
    private val daoSession = App.getInstances().daoSession
    /**
     * 获取所有的点
     */
    fun getPoints(projectId:Long): List<Point> {
        return daoSession.pointDao.queryBuilder().where(PointDao.Properties.ProjectId.eq(projectId)).build().list()
    }

}